$def with(media_items, pager, mce = 'false', thumb = 1)
$:render.admin.header(css=['admin/css/popup.css','admin/css/media.css'],scripts=['scripts/libs/plupload/plupload.js','scripts/libs/plupload/plupload.browserplus.js','scripts/libs/plupload/plupload.flash.js','scripts/libs/plupload/plupload.html5.js','scripts/libs/plupload/plupload.html4.js','scripts/libs/plupload/plupload.gears.js','scripts/libs/plupload/plupload.silverlight.js','admin/scripts/media-upload.js'])
<script type="text/javascript">
    $$(function () {
        $$('input[name=media_id]').each(function () {
            var self = $$(this);
            prepareMediaItemInit({'id': self.val()});
        });
    });
</script>

<div id="media-upload-header">
	<ul id="sidemenu">
		<li id="tab-type"><a href="$config.ADMIN_DIR/media/upload?mce=$mce&thumb=$thumb">从计算机</a></li>
        <!--<li id="tab-type_url"><a href="javascript:;">从 URL</a></li>-->
		<li id="tab-library"><a href="$config.ADMIN_DIR/media/library" class="current">媒体库</a></li>
	</ul>
</div>

<form id="filter" action="" method="get">
<p id="media-search" class="search-box" style="display:none;">
	<label class="screen-reader-text" for="media-search-input">搜索媒体:</label>
	<input type="text" class="txt" id="media-search-input" name="s" value="" />
    <input type="submit" name="" id="" class="btn" value="搜索媒体"  />
</p>

<div class="tablenav">

    <div class='tablenav-pages'>
        $:pager
    </div>
<div class="alignleft actions">
<label class="screen-reader-text" for="media-search-input">搜索媒体:</label>
	<input type="text" class="txt" id="media-search-input" name="q" value="" />
    <input type="submit" name="" id="" class="btn" value="搜索媒体"  />
<select name='m' style="display:none;">
<option value='0'>显示所有日期</option>
</select>

<input type="submit" style="display:none;" name="post-query-submit" id="post-query-submit" class="btn" value="筛选 &#187;"  />
</div>

<br class="clear" />
</div>
</form>

<form action="$config.ADMIN_DIR/media/upload?mce=$mce&thumb=$thumb" enctype="multipart/form-data" method="post" id="image-form" class="media-upload-form type-form">

    <div id="media-items">$:media_items</div>
    <p class="ml-submit">
    <input type="submit" name="save" id="save" class="btn savebutton" value="保存所有更改" />
</p>
</form>

$:render.admin.footer()
